function simpleTree(){
	var vroot = new Ext.tree.TreeNode({
		text:"树根"
	});
	vroot.appendChild(new Ext.tree.TreeNode({text:"子节点"}));
	var panel = new Ext.tree.TreePanel({
		title:"树的实例",
		root :vroot,
		height:300,
		width:300
	});
	panel.render("d1");
}


function simpleTreeLoader(){
	var vroot = new Ext.tree.AsyncTreeNode({
		text:"树根",
	});
	var vloader = new Ext.tree.TreeLoader({url:"treeData.js"});
	


	var panel = new Ext.tree.TreePanel({
		title:"树的实例",
		root :vroot,
		loader:vloader,
		height:300,
		width:300
	});
	panel.render("d1");
}

Ext.onReady(simpleTreeLoader);